<template>
  <div class="user s-singlePage">
    <userTree @getSelectNode="getSelectNode" @after-add="afterAdd"></userTree>
    <userList ref="userList"></userList>
  </div>
</template>

<script>
import userList from "./module/userList";
import userTree from "./module/userTree";
export default {
  name: "user",
  components:{
    userList,
    userTree
  },
  methods:{
    getSelectNode(node){
      this.$refs.userList.selectNode = node
      this.$refs.userList.getUserByCriteria();
    },
    afterAdd(){
      this.$refs.userList.getUserByCriteria();
    },
  }
}
</script>

<style scoped lang="less">
.user {
  display: flex;
}
</style>